package com.support.android.designlibdemo.model;

import android.test.suitebuilder.TestMethod;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2015/11/16.
 */
public class Datautil {
    public final static int PIC_TYPE_CARTOON = 1;
    public final static int PIC_TYPE_AMERICAN = 2;
    public final static int PIC_TYPE_JAPANESE = 3;

    /**
     * TEST
     *
     * @param type
     * @param pageNum
     * @return
     */
    public static List<TitleListModel> ParseTitleData(int type, int pageNum) {
        List<TitleListModel> list = new ArrayList<TitleListModel>();
        //test
        testMethod(list,pageNum);
        return list;
    }

    public static void testMethod( List<TitleListModel> list,int num)
    {
        for(int i=0;i<20;i++)
        {
            TitleListModel model =new TitleListModel();
            model.setTime("2015-11-16");
            model.setTitle("i am title page:"+num+"-"+i);
            list.add(model);
        }
    }
}
